package timu;

public class cunqian {
    public static void main(String[] args) {
        double a=2.5;
        int day=0;
        double hua=6;
        double money=0;
        for(;money<100;){
            day++;
            money=money+a;
            if(day%5==0){
                money=money-hua;
            }
            System.out.println("小芳第"+day+"天的存款为："+money+"元");
        }
        System.out.println("经过"+day+"天，小芳才可以存到100元");
    }
}
